﻿#pragma strict

public var icon:Texture2D;

function OnGUI(){
	GUI.Box(Rect(0,0,100,50),"Top-left");
	GUI.Box(Rect(Screen.width-100,0,100,50),"Top-right");
	GUI.Box(Rect(0,Screen.height-50,100,50),"Bottom-left");
	GUI.Box(Rect(Screen.width-100,Screen.height-50,100,50),"Bottom-right");
	
	GUI.Button(Rect(Screen.width - 100 >> 1,20,100,40),"Test Button");
	GUI.Button(Rect(Screen.width - 100 >> 1,100,100,40),icon);
	GUI.Button(Rect(Screen.width - 100 >> 1,180,100,40),GUIContent("icon button",icon));	
	GUI.Button(Rect(Screen.width - 100 >> 1,280,100,40),GUIContent("toolTip button","click me"));	
	GUI.Label(Rect(Screen.width - 100 >> 1,280,100,40),GUI.tooltip);
}